@echo off

echo Dumping changelist descriptions...
p4 changelists -l -s submitted //R6.Root/Mainline/dev/redtoolkit/Red.Launcher/... //R6.Root/Mainline/dev/redtoolkit/Red.Controls/... //R6.Root/Mainline/dev/redtoolkit/Red.Core/... > %1.tmp

echo Stripping UTF-8 characters...
%2 -s -c -f utf-8 -t cp1252 %1.tmp > %1

echo Converting to RTF...
%3 %1